<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OpenIG: OpenIG::Base::StringUtils Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="openig_logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OpenIG
   &#160;<span id="projectnumber">2.0.7</span>
   </div>
   <div id="projectbrief">cross-platform open-source OpenSceneGraph Image Generator</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>OpenIG</b></li><li class="navelem"><b>Base</b></li><li class="navelem"><a class="el" href="class_open_i_g_1_1_base_1_1_string_utils.html">StringUtils</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_open_i_g_1_1_base_1_1_string_utils-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">OpenIG::Base::StringUtils Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The singleton <a class="el" href="class_open_i_g_1_1_base_1_1_string_utils.html" title="The singleton StringUtils class. ">StringUtils</a> class.  
 <a href="class_open_i_g_1_1_base_1_1_string_utils.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_string_utils_8h_source.html">StringUtils.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aa5c9169817d4790848d7962117c38b69"><td class="memItemLeft" align="right" valign="top"><a id="aa5c9169817d4790848d7962117c38b69"></a>
typedef std::vector&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>Tokens</b></td></tr>
<tr class="separator:aa5c9169817d4790848d7962117c38b69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d6469eb5553ab579f64ba398c5fe616"><td class="memItemLeft" align="right" valign="top"><a id="a2d6469eb5553ab579f64ba398c5fe616"></a>
typedef std::vector&lt; std::string &gt;::iterator&#160;</td><td class="memItemRight" valign="bottom"><b>TokensIterator</b></td></tr>
<tr class="separator:a2d6469eb5553ab579f64ba398c5fe616"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52de09cd571b90fc345e40b6f6a28378"><td class="memItemLeft" align="right" valign="top"><a id="a52de09cd571b90fc345e40b6f6a28378"></a>
typedef std::vector&lt; std::string &gt;::const_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>TokensConstIterator</b></td></tr>
<tr class="separator:a52de09cd571b90fc345e40b6f6a28378"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a672e3c3c2e1a32a3f0010d03ba48caef"><td class="memItemLeft" align="right" valign="top"><a id="a672e3c3c2e1a32a3f0010d03ba48caef"></a>
typedef std::vector&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>StringList</b></td></tr>
<tr class="separator:a672e3c3c2e1a32a3f0010d03ba48caef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3de65ac5b1372dd9aefc1006f28d9a5"><td class="memItemLeft" align="right" valign="top"><a id="ae3de65ac5b1372dd9aefc1006f28d9a5"></a>
typedef std::vector&lt; std::string &gt;::iterator&#160;</td><td class="memItemRight" valign="bottom"><b>StringListIterator</b></td></tr>
<tr class="separator:ae3de65ac5b1372dd9aefc1006f28d9a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae446f815beb4e6d7592bfc5ddecb5810"><td class="memItemLeft" align="right" valign="top"><a id="ae446f815beb4e6d7592bfc5ddecb5810"></a>
typedef std::vector&lt; std::string &gt;::const_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>StringListConstIterator</b></td></tr>
<tr class="separator:ae446f815beb4e6d7592bfc5ddecb5810"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a65f15787d7ae4644220776c55f1f084e"><td class="memItemLeft" align="right" valign="top">Tokens&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_string_utils.html#a65f15787d7ae4644220776c55f1f084e">tokenize</a> (const std::string &amp;str, const std::string &amp;delimiters=&quot; &quot;)</td></tr>
<tr class="memdesc:a65f15787d7ae4644220776c55f1f084e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates tokens std::vector&lt;std::string&gt; from a string and given delimiters.  <a href="#a65f15787d7ae4644220776c55f1f084e">More...</a><br /></td></tr>
<tr class="separator:a65f15787d7ae4644220776c55f1f084e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a09d946a8260d4c112521f5f984b033"><td class="memItemLeft" align="right" valign="top">Tokens&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_string_utils.html#a4a09d946a8260d4c112521f5f984b033">tokenizeExtended</a> (const std::string &amp;str)</td></tr>
<tr class="memdesc:a4a09d946a8260d4c112521f5f984b033"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates tokens std::vector&lt;std::string&gt; from a string and "" delimiters.  <a href="#a4a09d946a8260d4c112521f5f984b033">More...</a><br /></td></tr>
<tr class="separator:a4a09d946a8260d4c112521f5f984b033"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0147a710738a2ed15cfb7b82b670005c"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a0147a710738a2ed15cfb7b82b670005c"><td class="memTemplItemLeft" align="right" valign="top">std::string &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_string_utils.html#a0147a710738a2ed15cfb7b82b670005c">ltrim</a> (std::string &amp;s, T istestchar=std::isspace)</td></tr>
<tr class="memdesc:a0147a710738a2ed15cfb7b82b670005c"><td class="mdescLeft">&#160;</td><td class="mdescRight">trim a string from left  <a href="#a0147a710738a2ed15cfb7b82b670005c">More...</a><br /></td></tr>
<tr class="separator:a0147a710738a2ed15cfb7b82b670005c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9593fa86155f91bb80dcf5e10236049a"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a9593fa86155f91bb80dcf5e10236049a"><td class="memTemplItemLeft" align="right" valign="top">std::string &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_string_utils.html#a9593fa86155f91bb80dcf5e10236049a">rtrim</a> (std::string &amp;s, T istestchar=std::isspace)</td></tr>
<tr class="memdesc:a9593fa86155f91bb80dcf5e10236049a"><td class="mdescLeft">&#160;</td><td class="mdescRight">trim a string from right  <a href="#a9593fa86155f91bb80dcf5e10236049a">More...</a><br /></td></tr>
<tr class="separator:a9593fa86155f91bb80dcf5e10236049a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6376aa1f7b5e2d173574d350ac7d690"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:ad6376aa1f7b5e2d173574d350ac7d690"><td class="memTemplItemLeft" align="right" valign="top">std::string &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_string_utils.html#ad6376aa1f7b5e2d173574d350ac7d690">trim</a> (std::string &amp;s, T istestchar=std::isspace)</td></tr>
<tr class="memdesc:ad6376aa1f7b5e2d173574d350ac7d690"><td class="mdescLeft">&#160;</td><td class="mdescRight">trim a string from left and right  <a href="#ad6376aa1f7b5e2d173574d350ac7d690">More...</a><br /></td></tr>
<tr class="separator:ad6376aa1f7b5e2d173574d350ac7d690"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d48e36d78ff8920c0b0b47248d1f8b1"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_string_utils.html#a9d48e36d78ff8920c0b0b47248d1f8b1">numberOfLines</a> (const std::string &amp;text)</td></tr>
<tr class="memdesc:a9d48e36d78ff8920c0b0b47248d1f8b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the number of lines in a string.  <a href="#a9d48e36d78ff8920c0b0b47248d1f8b1">More...</a><br /></td></tr>
<tr class="separator:a9d48e36d78ff8920c0b0b47248d1f8b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48ce42fc579070987568c4fe3722bf03"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_string_utils.html#a48ce42fc579070987568c4fe3722bf03">env</a> (const std::string &amp;var)</td></tr>
<tr class="memdesc:a48ce42fc579070987568c4fe3722bf03"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value of an ENV variable, provided in form $ENV_VAR.  <a href="#a48ce42fc579070987568c4fe3722bf03">More...</a><br /></td></tr>
<tr class="separator:a48ce42fc579070987568c4fe3722bf03"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:af6d7c80641241c6df78f32a4a314f48e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_open_i_g_1_1_base_1_1_string_utils.html">StringUtils</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_string_utils.html#af6d7c80641241c6df78f32a4a314f48e">instance</a> ()</td></tr>
<tr class="memdesc:af6d7c80641241c6df78f32a4a314f48e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The singleton.  <a href="#af6d7c80641241c6df78f32a4a314f48e">More...</a><br /></td></tr>
<tr class="separator:af6d7c80641241c6df78f32a4a314f48e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The singleton <a class="el" href="class_open_i_g_1_1_base_1_1_string_utils.html" title="The singleton StringUtils class. ">StringUtils</a> class. </p>
<p>Handy class to use wit std::strings </p><dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a48ce42fc579070987568c4fe3722bf03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48ce42fc579070987568c4fe3722bf03">&#9670;&nbsp;</a></span>env()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string OpenIG::Base::StringUtils::env </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>var</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the value of an ENV variable, provided in form $ENV_VAR. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">var</td><td>the ENV variable, provided in form $ENV_VAR </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the value of an ENV variable </dd></dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Fri Oct 23 2015 </dd></dl>

</div>
</div>
<a id="af6d7c80641241c6df78f32a4a314f48e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6d7c80641241c6df78f32a4a314f48e">&#9670;&nbsp;</a></span>instance()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_open_i_g_1_1_base_1_1_string_utils.html">StringUtils</a>* OpenIG::Base::StringUtils::instance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The singleton. </p>
<dl class="section return"><dt>Returns</dt><dd>The singleton </dd></dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>

</div>
</div>
<a id="a0147a710738a2ed15cfb7b82b670005c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0147a710738a2ed15cfb7b82b670005c">&#9670;&nbsp;</a></span>ltrim()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string&amp; OpenIG::Base::StringUtils::ltrim </td>
          <td>(</td>
          <td class="paramtype">std::string &amp;&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>istestchar</em> = <code>std::isspace</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>trim a string from left </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td>The text to trim </td></tr>
    <tr><td class="paramname">istestchar</td><td>Function to test a char if it is a space char </td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>

</div>
</div>
<a id="a9d48e36d78ff8920c0b0b47248d1f8b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d48e36d78ff8920c0b0b47248d1f8b1">&#9670;&nbsp;</a></span>numberOfLines()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int OpenIG::Base::StringUtils::numberOfLines </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Computes the number of lines in a string. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>the input string </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>number of lines in the input string </dd></dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>

</div>
</div>
<a id="a9593fa86155f91bb80dcf5e10236049a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9593fa86155f91bb80dcf5e10236049a">&#9670;&nbsp;</a></span>rtrim()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string&amp; OpenIG::Base::StringUtils::rtrim </td>
          <td>(</td>
          <td class="paramtype">std::string &amp;&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>istestchar</em> = <code>std::isspace</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>trim a string from right </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td>The text to trim </td></tr>
    <tr><td class="paramname">istestchar</td><td>Function to test a char if it is a space char </td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>

</div>
</div>
<a id="a65f15787d7ae4644220776c55f1f084e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65f15787d7ae4644220776c55f1f084e">&#9670;&nbsp;</a></span>tokenize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Tokens OpenIG::Base::StringUtils::tokenize </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>delimiters</em> = <code>&quot;&#160;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates tokens std::vector&lt;std::string&gt; from a string and given delimiters. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">str</td><td>The input string to tokenize </td></tr>
    <tr><td class="paramname">delimiters</td><td>String of delimiter chars </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>std::vector&lt;std::string&gt; of tokens found </dd></dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>

</div>
</div>
<a id="a4a09d946a8260d4c112521f5f984b033"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a09d946a8260d4c112521f5f984b033">&#9670;&nbsp;</a></span>tokenizeExtended()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Tokens OpenIG::Base::StringUtils::tokenizeExtended </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates tokens std::vector&lt;std::string&gt; from a string and "" delimiters. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">str</td><td>The input string to tokenize </td></tr>
    <tr><td class="paramname">delimiters</td><td>String of delimiter chars </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>std::vector&lt;std::string&gt; of tokens found </dd></dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Tue Jun 30 2015 </dd></dl>

</div>
</div>
<a id="ad6376aa1f7b5e2d173574d350ac7d690"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6376aa1f7b5e2d173574d350ac7d690">&#9670;&nbsp;</a></span>trim()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string&amp; OpenIG::Base::StringUtils::trim </td>
          <td>(</td>
          <td class="paramtype">std::string &amp;&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>istestchar</em> = <code>std::isspace</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>trim a string from left and right </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td>The text to trim </td></tr>
    <tr><td class="paramname">istestchar</td><td>Function to test a char if it is a space char </td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>Core-Base/<a class="el" href="_string_utils_8h_source.html">StringUtils.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed May 16 2018 15:41:11 for OpenIG by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
